class CreateAnswers < ActiveRecord::Migration[5.2]
  def change
    create_table :answers do |t|
      t.belongs_to :exam_quiz, foreign_key: true, null: false
      t.belongs_to :student, foreign_key: {to_table: :users}, null: false

      t.timestamps
    end
  end
end
